<?php

class Model_model extends Cloud {
	
	function __construct(){
		parent::__construct();
	}
	
	function get_all_tables(){
		$data = $this->cloud->db->query("Table List","SELECT table_name as tables FROM information_schema.tables WHERE table_schema = DATABASE(); ")->fetch("Table List");
		return $data;
	}
	
	function get_table_content($table){
		return $this->cloud->db->query("table", "SELECT * FROM $table")->fetch("table");
	}
	
}


?>